package model
/******sql******
CREATE TABLE `files` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '文件名称',
  `bucket` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '桶',
  `hash` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '哈希',
  `md5` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'md5',
  `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '实际路径',
  `create_time` int(11) DEFAULT NULL COMMENT '时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
******sql******/
// Files [...]
type	Files	struct {
	ID	int64	`gorm:"primaryKey;column:id;type:bigint(11);not null" json:"-"`
	FileName	string	`gorm:"column:file_name;type:varchar(255)" json:"file_name"`	// 文件名称
	Bucket	string	`gorm:"column:bucket;type:char(50)" json:"bucket"`	// 桶
	Hash	string	`gorm:"column:hash;type:char(50)" json:"hash"`	// 哈希
	Md5	string	`gorm:"column:md5;type:char(50)" json:"md5"`	// md5
	Path	string	`gorm:"column:path;type:varchar(255)" json:"path"`	// 实际路径
	CreateTime	int	`gorm:"column:create_time;type:int(11)" json:"create_time"`	// 时间
}